<%= render :active_scaffold => 'administrators', :constraints => {:project_id => @project.id} -%>


<script>


<% if !@project.is_logged_in_project_administrator? %>
	<% @project.administrators.each do |admin| %>
		document.getElementById('administrators-destroy-<%= admin.id.to_s %>-link').innerHTML = '';
	<% end -%>
<% else -%>
document.getElementById('mod_actions').innerHTML = '<a href="/administrators/new/<%= @project.id.to_s %>"  class="new action" id="administrators-new--link" position="top">Add a new Administrator!</a>' + document.getElementById('mod_actions').innerHTML;
<% end -%>


</script>